package com.example.demo.event;

import com.example.demo.bean.UserBean;
import org.springframework.context.ApplicationEvent;

/**
 * @author ml
 * @create 2017-08-02--17:06
 */
public class UserRegisterEvent extends ApplicationEvent{

    //注册用户对象
    private UserBean userBean;

    public UserBean getUserBean() {
        return userBean;
    }

    /**
     * 重写构造函数
     * @param resource 发生事件的对象
     * @param userBean 注册用户对象
     */
    public UserRegisterEvent(Object resource,UserBean userBean){
        super(resource);
        this.userBean=userBean;

    }
}
